package com.kelvin.paopao.utils;

import android.content.Context;

import com.kelvin.kelvinlib.utils.ToastUtil;
import com.kelvin.paopao.module.login.LoginAndRegisterActivity;

/**
 * Created by MCK on 2017/5/13.
 */

public class LoginUtil {
    public static void checkLogin(Context context){
        if(!Constant.IS_LOGIN) {
            LoginAndRegisterActivity.launch(context);
            ToastUtil.showToast(context, "请先登录！");
        }
    }
}
